import { Injectable } from '@angular/core';
import { Observable, of, from } from 'rxjs';
export interface Menu {
  name: string;
  path: string;
  bgColor?: string;
}
@Injectable({
  providedIn: 'root'
})
export class DashboardService {
  mockData = [{
    name: 'todo list',
    path: '/todo-list'
  }, {
    name: 'animate vote',
    path: '/animate-vote'
  }, {
    name: 'father',
    path: '/father'
  }]
  menu_colors = ['#FF3900', '#00FF76', '#2BC874', '#C84E2B'];

  constructor() { }

  getMenus(): Observable<Array<Menu>> {
    return of(this.mockData);
  }
  getMenuColors(): Observable<Array<string>> {
    return of(this.menu_colors);
  }
}
